

#!/bin/bash

#Servidor Raiz
ssh node1 "./client_server 4" &
sleep 1

#Servidor de nivel 3
ssh node2 "./client_server 3 192.168.0.10" &
ssh node3 "./client_server 3 192.168.0.10" &
sleep 1

#Servidor de nivel 2
ssh node4 "./client_server 2 192.168.0.20" &
ssh node5 "./client_server 2 192.168.0.20" &
ssh node6 "./client_server 2 192.168.0.30" &
ssh node7 "./client_server 2 192.168.0.30" &
sleep 1

#Clientes
ssh node8 "./client_server 1 192.168.0.40" &
ssh node9 "./client_server 1 192.168.0.40" &
ssh node10 "./client_server 1 192.168.0.50" &
ssh node11 "./client_server 1 192.168.0.50" &
ssh node12 "./client_server 1 192.168.0.60" &
ssh node15 "./client_server 1 192.168.0.60" &
ssh node16 "./client_server 1 192.168.0.70" &
ssh node17 "./client_server 1 192.168.0.70" &
sleep 1
